import request from "../utils/request.js"

// 发布悬赏
export function subOffer(data) {
	return request({
		url: "/offer/subOffer",
		method: 'post',
		data
	})
}
// 微信支付
export function offerWxPay(data) {
	return request({
		url: "/offer/wxPay",
		method: 'post',
		data
	})
}
// 我的悬赏列表
export function offerlst(data) {
	return request({
		url: "/offer/lst",
		data
	})
}
// 悬赏大厅
export function offerHall(data) {
	return request({
		url: "/user/offerHall",
		data
	})
}
// 悬赏详情
export function detail(data) {
	return request({
		url: "/offer/detail",
		data
	})
}
// 悬赏大厅详情
export function userofferdetail(data) {
	return request({
		url: "/user/offerDetail",
		data
	})
}



// 取消订单
export function cancelOrder(data) {
	return request({
		url: "/offer/cancelOrder",
		method: "post",
		data
	})
}

// 退款订单
export function refund(data) {
	return request({
		url: "/offer/refund",
		method: "post",
		data
	})
}

// 确认悬赏订单完成
export function orderConfirm(data) {
	return request({
		url: "/offer/orderConfirm",
		method: "post",
		data
	})
}
// 卖家接单
export function offerOrder(data) {
	return request({
		url: "/train.offer/offerOrder",
		method: "post",
		data
	})
}
// 我的悬赏
export function offerList(data) {
	return request({
		url: "/train.offer/offerList",
		data
	})
}
// 工作室确认订单完成
export function offerConfirm(data) {
	return request({
		url: "/train.offer/offerConfirm",
		method: "post",
		data
	})
}

// 批量多选确认订单完成
export function offerConfirmMultiple(data) {
	return request({
		url: "/train.offer/offerConfirmMultiple",
		method: "post",
		data
	})
}
// 代练中状态设置
export function offerTraining(data) {
	return request({
		url: "/train.offer/offerTraining",
		method: "post",
		data
	})
}

// 我的悬赏详情
export function offerDetail(data) {
	return request({
		url: "/train.offer/offerDetail",
		data
	})
}